#ifndef REMINDERITEM_H
#define REMINDERITEM_H


#include <QStandardItem>
#include <QItemDelegate>
#include <QCalendarWidget>

#include "reminder.h"

class ReminderItem : public QStandardItem
{
public:
    ReminderItem(Reminder* r);
    ~ReminderItem();

inline int type() const { return 1001;}

inline void setReminder(Reminder* r) { reminder = r; }
inline Reminder* getReminder() { return reminder; }


private:
    Reminder* reminder;
};

class ReminderCalendar : public QCalendarWidget
{
    Q_OBJECT
public:
    ReminderCalendar(QWidget* parent);
    ~ReminderCalendar();
protected:
    void paintCell ( QPainter * painter, const QRect & rect, const QDate & date ) const;
};

#endif // REMINDERITEM_H
